<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>v-bind:style</title>
<!--引入Vue库-->
<script src="vue.js"></script>
</head>
<body>	
<div id="app" :style="{ color: activeColor, fontSize: size + 'px' }">欢迎登录
</div>  
<script>
  var vm=new Vue({
      el: '#app',
      data: {
          activeColor: 'blue',
          size: 24
        }
      })
</script>
</body>
</html>
